package com.example.baozidemo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.baozidemo.commons.mybatis.BaseServiceImpl;
import com.example.baozidemo.entity.SysUserEntity;
import com.example.baozidemo.mapper.SysUserDao;
import com.example.baozidemo.service.SysUserService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("sysUserService")
public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntity> implements SysUserService {

    @Override
    public QueryWrapper<SysUserEntity> queryWrapper(Map<String, Object> params) {
        return null;
    }

    @Override
    public void handleList(List<SysUserEntity> list, Map<String, Object> params) {
        System.out.println("处理数据！");
    }

    @Override
    public Map<String, List<SysUserEntity>> queryMapBy() {
        QueryWrapper<SysUserEntity> wrapper = new QueryWrapper<>();
        return this.queryListMap(wrapper, SysUserEntity::getMobile, true);
    }
}